<script setup>
import { ref } from 'vue'

const team = ref([
  {
    name: '张明',
    role: '创始人 & 首席设计师',
    image: '👨‍💻',
    bio: '拥有10年设计经验，专注于创建用户友好的数字体验'
  },
  {
    name: '李娜',
    role: '前端开发专家',
    image: '👩‍💻',
    bio: 'Vue.js和React专家，致力于构建高性能的Web应用'
  },
  {
    name: '王强',
    role: '用户体验设计师',
    image: '🎨',
    bio: '将复杂的设计挑战转化为直观易用的界面解决方案'
  },
  {
    name: '陈静',
    role: '项目经理',
    image: '📊',
    bio: '确保每个项目按时交付，超越客户期望'
  }
])

const values = ref([
  {
    title: '创新',
    description: '不断探索新技术和设计趋势，为客户提供前沿解决方案',
    icon: '💡'
  },
  {
    title: '质量',
    description: '注重细节，追求卓越，确保每个项目都达到最高标准',
    icon: '✨'
  },
  {
    title: '合作',
    description: '与客户紧密合作，理解需求，共同创造成功',
    icon: '🤝'
  },
  {
    title: '透明',
    description: '开放的沟通方式，让客户随时了解项目进展',
    icon: '🔍'
  }
])
</script>

<template>
  <div class="about">
    <!-- Hero Section -->
    <section class="about-hero">
      <div class="container">
        <div class="about-hero-content">
          <h1>关于我们</h1>
          <p>我们是一支充满激情的团队，致力于创造卓越的数字化体验</p>
        </div>
      </div>
    </section>

    <!-- Story Section -->
    <section class="story">
      <div class="container">
        <div class="story-content">
          <div class="story-text">
            <h2>我们的故事</h2>
            <p>
              成立于2018年，我们从一个小型设计工作室发展成为一家全方位的数字解决方案提供商。
              我们的使命是通过创新的设计和先进的技术，帮助企业在数字时代蓬勃发展。
            </p>
            <p>
              我们相信伟大的设计不仅仅是美观，更是功能与形式的完美结合。
              每一个项目都是我们与客户共同创造的艺术品，承载着独特的品牌故事和用户体验。
            </p>
          </div>
          <div class="story-image">
            <div class="image-placeholder">
              <span>🏢</span>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- Values Section -->
    <section class="values">
      <div class="container">
        <div class="section-header">
          <h2>我们的价值观</h2>
          <p>指导我们工作的核心原则</p>
        </div>
        <div class="values-grid">
          <div v-for="value in values" :key="value.title" class="value-card">
            <div class="value-icon">{{ value.icon }}</div>
            <h3>{{ value.title }}</h3>
            <p>{{ value.description }}</p>
          </div>
        </div>
      </div>
    </section>

    <!-- Team Section -->
    <section class="team">
      <div class="container">
        <div class="section-header">
          <h2>我们的团队</h2>
          <p>专业、敬业、充满创造力的团队成员</p>
        </div>
        <div class="team-grid">
          <div v-for="member in team" :key="member.name" class="team-card">
            <div class="team-avatar">{{ member.image }}</div>
            <h3>{{ member.name }}</h3>
            <p class="team-role">{{ member.role }}</p>
            <p class="team-bio">{{ member.bio }}</p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<style scoped>
.about {
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* About Hero */
.about-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
}

.about-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-hero-content p {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* Story Section */
.story {
  padding: 100px 0;
  background: white;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1a202c;
}

.story-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.story-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 400px;
  height: 300px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

/* Values Section */
.values {
  padding: 100px 0;
  background: #f7fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a202c;
}

.section-header p {
  font-size: 1.25rem;
  color: #718096;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a202c;
}

.value-card p {
  color: #718096;
  line-height: 1.6;
}

/* Team Section */
.team {
  padding: 100px 0;
  background: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 0.5rem;
  transition: transform 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
}

.team-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a202c;
}

.team-role {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  color: #718096;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-hero-content h1,
  .section-header h2 {
    font-size: 2rem;
  }
  
  .about-hero-content p {
    font-size: 1.25rem;
  }
  
  .story-text h2 {
    font-size: 2rem;
  }
  
  .image-placeholder {
    width: 100%;
    max-width: 300px;
    height: 200px;
  }
  
  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .about-hero {
    padding: 80px 0 60px;
  }
}
</style>
